package com.cooperate.fly.service.buildDB;

import com.cooperate.fly.bo.Field;
import com.cooperate.fly.web.Result;

import java.io.File;
import java.util.ArrayList;
import java.util.Map;

/**
 * Created by Stellar_Lee on 2016/4/18.
 */
public interface BuildFieldService {

    Result createFieldNode(Field field);
    Result create3Matrix(int fid,String xName,String xTitle,String yName,String yTitle,String zName);
    Result get3MatrixInfo(int id);
    Result deleteFieldNode(Field field);
    Result deleteFieldNodeById(int id);
    Result updateFieldNode(Field field);
    Result searchFieldNode(Field field);
    Result searchFieldNodeById(int id);
    //get all fields from one database
    String loadField(int databaseId);

    Map<String,String> loadPartFile(int fieldId);

    String parseFieldUrl(String schemaPath,String fieldPath);

    Result getRemark1(int id);
    Result getRemark3(int id);

    boolean checkFieldName(Field field);

    File downloadFields(int databaseId,int fieldId) throws Exception;

    Map<String, String> loadPartField(int fieldId);

    Result freshData(String fieldsStr,int schemaId,int fieldId);

    Result exchangeNode(int frontNodeId,int backNodeId);
}
